export default {
    ['weight_info']: {
        weight_id: '',      // 序号
        weightId: '',       // 称重id
        create_time: '',    // 称量时间
        weight: '',         // 重量
        bmi: '',            // bmi
        bfr: '',            // 体脂率
        sfr: '',            // 皮下脂肪
        uvi: '',            // 内脏脂肪指数
        rom: '',            // 肌肉率
        bmr: '',            // 基础代谢率
        bm: '',             // 骨重
        vwc: '',            // 水含量
        body_age: '',       // 身体年龄
        pp: '',             // 蛋白率
        adc: '',            // 阻抗
        /* 新增加指标 */
        smPercent: '',           // 骨骼肌率(百分比,精度:0.1)
        standard_wt: '',         // 标准体重
        ctrl_qty_wt: '',         // 体重控制量
        fat_qty: '',             // 脂肪量
        to_fat_wt: '',           // 去脂体重
        muscle_mass: '',         // 肌肉量
        amount_of_protein: '',   // 蛋白量
        good_wt: '',             // 量佳体重
        wt_health_range: '',     // 健康体重范围
        target_range: '',        // 目标距离
        lose_wt: '',             // 去脂体重
        wt_ctrl_qty: '',         // 体重控制量
        fat_ctrl_qty: '',        // 脂肪控制量
        muscle_ctrl_qty: '',     // 肌肉控制量
        heart_rate_range: '',    // 有氧心率范围
        water_qty: '',           // 水量
        protein_range: '',       // 蛋白质摄入范围

        /**
         是否稳定数据,如果数据不稳定，则只有weight有效，不稳定的数据只做展示用，请勿保存
         */
        is_stabilized: false,
        weight_kg: 0.0, // 体重(kg)
        weight_lb: 0.0, // 体重(磅)
        weight_st: 0.0, // 体重(st:lb)，注:这个字段跟weight_st_lb一起使
        weight_st_lb: 0.0,   // 体重(st:lb)，注:这个字段跟weight_st一起使用
        precision_kg: 1, // kg体重小数点位数,如:weight_kg=70.12,则precision=2，weight_kg=71.5,则precision_kg=1
        /**
         lb体重小数点位数,如:weight_lb=70.12,则precision=2，weight_lb=71.5,则precision_lb=1
         */
        precision_lb: 1,
        /**
         st:lb体重小数点位数
         */
        precision_st_lb: 1,
        /**
         温度
         */
        temperature: 0.0,
        /**
         时间戳
         */
        time: 0

    },
    weightImport: function (wtDatas) {
        this.weight_info.weightId
        this.weight_info.is_stabilized = wtDatas.isStabilized
        this.weight_info.weight_kg = wtDatas.weight_kg
        this.weight_info.weight_lb = wtDatas.weight_lb
        this.weight_info.weight_st = wtDatas.weight_st
        this.weight_info.weight_st_lb = wtDatas.weight_st_lb
        this.weight_info.precision_kg = wtDatas.precision_kg
        this.weight_info.precision_lb = wtDatas.precision_lb
        this.weight_info.precision_st_lb = wtDatas.precision_st_lb
        this.weight_info.temperature = wtDatas.temperature
        this.weight_info.time = wtDatas.time
        this.weight_info.bmi = wtDatas.bmi
        this.weight_info.bfr = wtDatas.bodyFatPercent
        this.weight_info.sfr = wtDatas.subcutaneousFatPercent
        this.weight_info.uvi = wtDatas.visceralFat
        this.weight_info.rom = wtDatas.musclePercent
        this.weight_info.bmr = wtDatas.bmr
        this.weight_info.bm = wtDatas.boneMass
        this.weight_info.vwc = wtDatas.moisturePercent
        this.weight_info.body_age = wtDatas.physicalAge
        this.weight_info.pp = wtDatas.proteinPercent
        this.weight_info.smPercent =wtDatas.smPercent
        this.weight_info.adc = wtDatas.impendences.join(",")
    }
};